module.exports = {
    title: "小明的博客",
    description: "欢迎来到小明同学的博客(*￣︶￣)",
    head: [
        // 注入到当前页面的 HTML <head> 中的标签
        // ["link", { rel: "icon", href: "/logo.jpg" }], // 增加一个自定义的 favicon(网页标签的图标)
    ],
    // base: "/", // 这是部署到github相关的配置
    markdown: {
        lineNumbers: false, // 代码块显示行号
        toc: {
            includeLevel: [1, 2, 3, 4], // 默认值为[2, 3], 所以默认不显示一级标题
        },
    },
    themeConfig: {
        sidebar: "auto", // 侧边栏配置
        // sidebar: [
        // 	{
        // 		title: "js学习",
        // 		collapsable: false,
        // 		children: ["/js1", "/js2"],
        // 	},
        // 	{
        // 		title: "二组题目",
        // 		children: [["/home2", "home2自定义题目"], "/home3", "/中文"],
        // 	},
        // ],
        sidebarDepth: 2, // 侧边栏显示2级
        nav: [
            // 导航栏配置
            { text: "markdown语法", link: "/guide/markdown" },

            {
                text: "vue场景案例",
                items: [
                    {
                        text: "性能优化",
                        items: [{ text: "虚拟滚动", link: "/guide/xingneng/VirtualScroll" }],
                    },
                ],
            },
            {
                text: "前端基础",
                items: [
                    {
                        text: "js基础",
                        items: [
                            { text: "原型和原型链", link: "/guide/js/js对象的原型和原型链" },
                            { text: "作用域和作用域链", link: "/guide/js/js作用域和作用域链" },
                            { text: "事件循环机制-event loop", link: "/guide/js/js事件循环机制-event loop" },
                            { text: "预编译", link: "/guide/js/js执行机制-预编译" },
                            { text: "defineProperty", link: "/guide/js/Object.defineProperty" },
                        ],
                    },
                    {
                        text: "react基础",
                        items: [{ text: "搭建react项目", link: "/guide/react/搭建react项目" }],
                    },
                    {
                        text: "测试",
                        items: [{ text: "demo", link: "/demo" }],
                    },
                ],
            },
            {
                text: "常用方法",
                items: [
                    {
                        text: "vue",
                        items: [{ text: "vue表单", link: "/guide/vue/vue表单" }],
                    },
                ],
            },
        ],
    },
    // https://segmentfault.com/a/1190000041409173 插件
    plugins: ["demo-container"], // 支持vue    https://calebman.github.io/vuepress-plugin-demo-container/zh/options.html#component
}

// https://segmentfault.com/a/1190000017055963          vuepress
// https://www.cnblogs.com/quellanan/p/11613109.html    hexo
